package com.example.demo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("tp_user")
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private String email;
    //@TableField(value = "pwd") //字段不对应，重命名
    private String password;
    @TableField(exist = false)//字段是否存在判断
    private Integer age;
    private String  mobile;
    @TableField(exist = false)
    private Integer online;
}
